package xin.marcher.module.search.api;

import xin.marcher.module.common.core.JsonResult;
import xin.marcher.module.common.core.PageResult;
import xin.marcher.module.search.domain.dto.CompletionSearchWordDTO;
import xin.marcher.module.search.domain.dto.CompletionSearchWordResultDTO;
import xin.marcher.module.search.domain.request.CompletionSearchWordRequest;
import xin.marcher.module.search.domain.request.QueryCompletionSearchWordPageRequest;

/**
 * 搜索补全词
 */
public interface CompletionSearchWordApi {

    /**
     * 保存补全词接口
     */
    JsonResult<CompletionSearchWordResultDTO> saveCompletionSearchWord(CompletionSearchWordRequest request);

    /**
     * 查询补全词接口
     */
    JsonResult<PageResult<CompletionSearchWordDTO>> listCompletionSearchWordPage(QueryCompletionSearchWordPageRequest request);

}
